<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">单位基本情况</div>
<x:parse xml="${param.xmlstr}" var="xmlData" />
 <input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
<input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
<input type="hidden" name="organizations/organization[0]/org_code" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<td width="20%" align="right" nowrap>单位名称：</td>
		<td width="30%">&nbsp;<span name="organizations/organization[0]/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />
		    </span>
		</td>
		<td align="right" width="20%">注册地址：</td>
		<td width="30%">&nbsp;
		    <span name="organizations/organization[0]/address"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right" nowrap width="20%">企业所属地区：</td>
		<td width="30%">&nbsp;
		    <span name="organizations/organization[0]/area_name">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/area_name" />
		    </span>
		    <input name="proposal/area_no" type="hidden" value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/area_value" />"/>
		</td>
		<td align="right" width="20%">组织机构代码：</td>
		<td width="30%">&nbsp;
		    <span name="organizations/organization[0]/org_no"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_no" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right">营业执照注册号：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/org_licence">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_licence" />
		    </span>
		</td>
		<td align="right">税务登记号：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/tax_local_no"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/tax_local_no" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right">注册资本：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/registe_fund">
		       <x:out select="$xmlData/data/org_basic_info/registe_fund" />万<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/registe_fund_money_name" />
		    </span>
		</td>
		<td align="right">注册类型：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/nature_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" /> 
		    </span>
		    <input type="hidden" name="organizations/organization[0]/nature_value"  value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />"/>
		</td>
	</tr>
	
	<tr>
		<td align="right">是否有风险投资：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/is_risk_invest_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/is_risk_invest_name" /> 
		    </span>
		
		</td>
		<td align="right">风险投资额：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/risk_invest"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/risk_invest" />万<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/risk_invest_money_name" /> 
		    </span>
        </td>
	</tr>
	
	<tr>
		<td align="right">注册日期：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/registe_date">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/registe_date" />
		    </span>
		</td>
		<td align="right">行业类型：</td>
		<td>&nbsp;
		    <!-- 
		    <input type="text" maxlength="50"  class="input_text required" label="行业类型"
			name="units/unit/industry_type"
			value="<x:out select="$xmlData/data/units/unit/industry_type"/>" />
		     -->
		    <span name="organizations/organization[0]/belong_industry_name">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/belong_industry_name" />
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right">母公司名称：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/main_org_name">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/main_org_name" />
		    </span>
		</td>
		<td align="right">母公司地址：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/main_org_addr"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/main_org_addr" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right">单位特性：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/chk_characteristic_name">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/chk_characteristic_name" />
		    </span>
		</td>
		<td align="right">单位资质：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/chk_authenticate_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/chk_authenticate_name" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right" nowrap>单位拥有研发机构状况：</td>
		<td colspan="3">&nbsp;
			<span name="organizations/organization[0]/research_org_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/research_org_name" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right" nowrap>所属重点园区：</td>
		<td colspan="3">&nbsp;
			<span name="organizations/organization[0]/industrial_park_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/industrial_park_name" /> 
		    </span>
		</td>
	</tr>
	
</table>
<div class="t_bar">开户信息</div>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="t_css">
       <tr class="li_1">
            <td align="right">开户银行：</td>
            <td align="left" colspan="1">
               <span name="org_basic_info/bank_name">
		            <x:out select="$xmlData/data/org_basic_info/bank_name" />
		       </span>
            </td>
            <td align="right">银行信用等级：</td>
            <td align="left" colspan="3">
               <span name="org_basic_info/credit_level">
		            <x:out select="$xmlData/data/org_basic_info/credit_level" />
		       </span>
            </td>
      </tr>
      <tr class="li_2" >
            <td align="right">开户户名：</td>
            <td align="left" colspan="1"> 
                <span name="org_basic_info/bank_orgname" >
		            <x:out select="$xmlData/data/org_basic_info/bank_orgname" />
		        </span>
            </td> 
            <td align="right">银行账号：</td>
            <td align="left" colspan="3">
                <span name="org_basic_info/bank_account" >
		            <x:out select="$xmlData/data/org_basic_info/bank_account" />
		        </span>
            </td>          
      </tr> 
</table>
<div class="t_bar">人员情况</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0"
	id="contactInfo" cellspacing="1">
	<tr>
		<td align="right">法人代表：</td>
		<td>&nbsp;
		    <span name="organization_persons/cname"> 
			    <x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname"/>
		    </span>
		    <input type="hidden" name="organization_persons/tel" value="<x:out select="$xmlData/data/organization_persons/person[@type='faren']/tel"/>"/>
		</td>
		<td align="right">证件类型：</td>
		<td>&nbsp;
		    <span name="organization_persons/id_type_name"> 
			    <x:out select="$xmlData/data/organization_persons/person[@type='faren']/id_type_name"/>
		    </span>
		</td>
		<td align="right">证件号码：</td>
		<td>&nbsp;
		    <span name="organization_persons/id_no"> 
			    <x:out select="$xmlData/data/organization_persons/person[@type='faren']/id_no"/>
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right" rowspan="2"><span class="color_red">*</span>员工人数：</td>
		<td rowspan="2">&nbsp;
		    <span name="organization_persons/people_count_total" id="staff"><x:out select="$xmlData/data/organization_persons/people_count_total" /></span>人
		</td>
		<td align="right"><span class="color_red">*</span>其中：研发人员数：</td>
		<td>&nbsp;
		<span name="organization_persons/job_yanfa" id="research"> <x:out select="$xmlData/data/organization_persons/job_yanfa" /></span>人
		</td>
		<td align="right">占员工总数比例：</td>
		<td>&nbsp;
		    <span name="proposal/proportion1"> 
			    <x:out select="$xmlData/data/proposal/proportion1"/>
		    </span>
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>其中：大学本科以上人数：</td>
		<td>&nbsp;
		<%-- <input name="organization_persons/degree_doctor" id="doctor" type="hidden" value="<x:out select="$xmlData/data/organization_persons/degree_doctor" />">
		<input name="organization_persons/degree_master" id="master" type="hidden"  value="<x:out select="$xmlData/data/organization_persons/degree_master" />">
		<input name="organization_persons/degree_bachelor" id="bachelor" type="hidden"  value="<x:out select="$xmlData/data/organization_persons/degree_bachelor" />">
		<span name="proposal/degree" id="degree"><x:out select="$xmlData/data/proposal/degree" /></span>人 --%>
		<span name="organization_persons/bachelor_up" id="degree"><x:out select="$xmlData/data/organization_persons/bachelor_up" /></span>人
		</td>
		<td align="right">占员工总数比例：</td>
		<td>&nbsp;
		    <span name="proposal/proportion2"> 
			    <x:out select="$xmlData/data/proposal/proportion2"/>
		    </span>
		</td>
	</tr>
</table>
<div class="t_bar">主要股东、出资人信息（前5位）</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0" id="shareholders" cellspacing="1">
	<tr align="center" >
				<th width="17%">股东/出资人名称</th>
				<th width="12%" nowrap>出资金额（万元）</th>
				<th width="10%">出资方式</th>
				<th width="10%">出资比例(%)</th>
				<th width="11%">入股时间</th>
				<th width="14%">证件类型</th>
				<th width="18%">证件号码</th>
			</tr>
			
	
	<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/organization_shareholders/shareholder" var="shareholder">
				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
	<tr align="center">
					<td align="center" nowrap="nowrap">
					    <span name="organization_shareholders/shareholder[${flag}${index}]/cname"><x:out select="$shareholder/cname" /></span>
					</td>
					<td align="center" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/invest_amount"><x:out select="$shareholder/invest_amount" /></span>
					</td>
					<td align="left" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/invest_type_name"><x:out select="$shareholder/invest_type_name" /></span>
          			</td>
					<td align="center" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/invest_percent"><x:out select="$shareholder/invest_percent" /></span>
					</td>
					<td align="center" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/buy_stock_date"><x:out select="$shareholder/buy_stock_date" /></span>
					</td>
					<td align="center" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/card_type_name"><x:out select="$shareholder/card_type_name" /></span>
					</td>
					<td align="center" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/card_code"><x:out select="$shareholder/card_code" /></span>
					</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
	</x:forEach>
</table>
<div class="t_bar">机构拥有知识产权状况（件）</div>

<table class="table01  t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="knowledge">
  <tr class="li_2">
    <td rowspan="2" align="center" style="vertical-align: middle;">专利申请总数
    </td>
    <td rowspan="2" align="center"><span name="knowledge/patent/request_tatal" ><x:out select= "$xmlData/data/knowledge/patent/request_tatal"/></span></td>
    <td colspan="6" align="center">其中</td>
    </tr>
  <tr class="li_2">
    <td align="center">发明 </td>
    <td align="center"> <span name="knowledge/patent/request_invent"><x:out select= "$xmlData/data/knowledge/patent/request_invent"/></span></td>
    <td align="center">实用新型</td>
    <td align="center"> <span name="knowledge/patent/request_useful"><x:out select= "$xmlData/data/knowledge/patent/request_useful"/></span></td>
    <td align="center">外观设计</td>
    <td align="center"> <span name="knowledge/patent/request_facade"><x:out select= "$xmlData/data/knowledge/patent/request_facade"/></span></td>
  </tr>

  <tr class="li_3">
    <td rowspan="2" align="center" style="vertical-align: middle;">专利授权总数</td>
    <td rowspan="2" align="center"> <span  name="knowledge/patent/authorize_tatal"> <x:out select= "$xmlData/data/knowledge/patent/authorize_tatal"/></span></td>
    <td colspan="6" align="center">其中</td>
    </tr>
  <tr class="li_3">
    <td align="center">发明</td>
	<td align="center"><span  name="knowledge/patent/authorize_invent"><x:out select= "$xmlData/data/knowledge/patent/authorize_invent"/></span></td>
	<td align="center">实用新型 </td>
	<td align="center"> <span  name="knowledge/patent/authorize_useful" ><x:out select= "$xmlData/data/knowledge/patent/authorize_useful"/></span></td>
	<td align="center">外观设计 </td>
	<td align="center"> <span  name="knowledge/patent/authorize_facade" ><x:out select= "$xmlData/data/knowledge/patent/authorize_facade"/></span></td>
  </tr>
 
  <tr class="li_2">
    <td align="center">软件著作权</td>
    <td align="center"><span  name="knowledge/right/soft_right" ><x:out select= "$xmlData/data/knowledge/right/soft_right"/></span></td>
    <td align="center">动植物新品种</td>
    <td align="center"> <span name="knowledge/right/new_plant"><x:out select= "$xmlData/data/knowledge/right/new_plant"/></span></td>
    <td align="center">集成电布图设计</td>
    <td align="center"> <span  name="knowledge/right/circuit_design"><x:out select= "$xmlData/data/knowledge/right/circuit_design"/></span></td>
    <td align="center">其他知识产权</td>
    <td align="center"> <span  name="knowledge/right/other_right" ><x:out select= "$xmlData/data/knowledge/right/other_right"/></span></td>
  </tr>
  <tr class="li_3">
    <td rowspan="2" align="center" style="vertical-align: middle;">技术标准</td>
    <td rowspan="2" align="center"><span  name="knowledge/standard/skill_standard" ><x:out select= "$xmlData/data/knowledge/standard/skill_standard"/></span></td>
    <td colspan="6" align="center">其中</td>
  </tr>
  <tr class="li_3">
    <td align="center">国际标准</td>
    <td align="center"> <span  name="knowledge/standard/internation_standard" ><x:out select= "$xmlData/data/knowledge/standard/internation_standard"/></span></td>
    <td align="center">国家标准</td>
    <td align="center"> <span  name="knowledge/standard/nation_standard" ><x:out select= "$xmlData/data/knowledge/standard/nation_standard"/></span></td>
    <td align="center">行业标准</td>
    <td align="center"> <span  name="knowledge/standard/industry_standard" ><x:out select= "$xmlData/data/knowledge/standard/industry_standard"/></span></td>
  </tr>
  <tr class="li_3">
    <td colspan="4">&nbsp;</td>
    <td align="center">地方标准</td>
    <td colspan="1" align="center"><span  name="knowledge/standard/local_standard" ><x:out select= "$xmlData/data/knowledge/standard/local_standard"/></span></td>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr class="li_2">
    <td rowspan="2" align="center" style="vertical-align: middle;">企业品牌数</td>
    <td rowspan="2" align="center"><span name="knowledge/brand/brand_tatal" ><x:out select= "$xmlData/data/knowledge/brand/brand_tatal"/></span></td>
    <td colspan="6" align="center">其中</td>
    </tr>
  <tr class="li_2">
    <td align="center">中国驰名商标</td>
    <td align="center"> <span  name="knowledge/brand/china_famous" ><x:out select= "$xmlData/data/knowledge/brand/china_famous"/></span></td>
    <td align="center">江苏省著名商标</td>
    <td align="center"> <span  name="knowledge/brand/jiangsu_famous" ><x:out select= "$xmlData/data/knowledge/brand/jiangsu_famous"/></span></td>
    <td align="center">江苏省名牌商标</td>
    <td align="center"><span name="knowledge/brand/jiangsu_good" ><x:out select= "$xmlData/data/knowledge/brand/jiangsu_good"/></span></td>
  </tr>
 
  </table>
		<div class="t_bar">近3年获得各级政府扶持</div>
		<table id="fund_projects" border="0" cellspacing="0" cellpadding="0" class="table01 t_css" style="width: 100%;">
			<tr>
				<th width="25px" rowspan="2">序号</th>
				<th rowspan="2">项目名称</th>
				<th width="14%" rowspan="2">资助部门</th>
				<th width="40%" colspan="5">政府扶持资金（单位：万元）</th>
				<th width="18%" rowspan="2">资助起止日期</th>
				<th width="7%" rowspan="2">资助形式</th>
				<th width="8%" rowspan="2">项目进度</th>
			</tr>
			<tr>
				<th>小计</th>
				<th>国家</th>
				<th>省级</th>
				<th>市级</th>
				<th>区级</th>
			</tr>
			
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/organization_research/fund_project" var="fund_project">
				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
					<td align="center">
						<span name="organization_research/fund_project[${flag}${index}]@sequence_no"><x:out select="$fund_project/@sequence_no" /></span>
					</td>
					<td>
					<span name="organization_research/fund_project[${flag}${index}]/ctitle"><x:out select="$fund_project/ctitle" /></span>
					</td>
					<td>
					<span name="organization_research/fund_project[${flag}${index}]/award_dept"><x:out select="$fund_project/award_dept" /></span>
					</td>
					<td>
					<span name="organization_research/fund_project[${flag}${index}]/award_amt_total"><x:out select="$fund_project/award_amt_total" /></span>
					</td>
					<td>
					<span name="organization_research/fund_project[${flag}${index}]/award_amt_nation"><x:out select="$fund_project/award_amt_nation" /></span>
					</td>
					<td>
					<span name="organization_research/fund_project[${flag}${index}]/award_amt_province"><x:out select="$fund_project/award_amt_province" /></span>
					</td>
					<td>
					<span name="organization_research/fund_project[${flag}${index}]/award_amt_city"><x:out select="$fund_project/award_amt_city" /></span>
					</td>
					<td>
					<span name="organization_research/fund_project[${flag}${index}]/award_amt_district"><x:out select="$fund_project/award_amt_district" /></span>
					</td>	
					<td nowrap="nowrap">
					<span name="organization_research/fund_project[${flag}${index}]/award_start_date"><x:out select="$fund_project/award_start_date" /></span>
	          			至
	          		<span name="organization_research/fund_project[${flag}${index}]/award_end_date"><x:out select="$fund_project/award_end_date" /></span>
					</td>	
					<td>
					<span name="organization_research/fund_project[${flag}${index}]/award_type_name"><x:out select="$fund_project/award_type_name" /></span>
					</td>
					<td>
					<span name="organization_research/fund_project[${flag}${index}]/accept_flag_name"><x:out select="$fund_project/accept_flag_name" /></span>
          			</td>          			
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
		</table>



<script type="text/javascript">
	

/* 	function Percentage(){
		var staff = $("#staff").val();
		var research = $("#research").val();
		var degree = $("#degree").val();
		$("span[name$=proportion1]").text(formatNumber((research/staff).toString(),9,4,4)*100+"%");
		$("span[name$=proportion2]").text(formatNumber((degree/staff).toString(),9,4,4)*100+"%");
	}
	 */
	$(function() {
		$("#orgInfo tr:even").addClass("li_1");
		$("#orgInfo tr:odd").addClass("li_2");
		$("#knowledge tr:even").addClass("li_1");
		$("#knowledge tr:odd").addClass("li_2");
		$("#contactInfo tr:even").addClass("li_1");
		$("#contactInfo tr:odd").addClass("li_2");
		$("#rateInfo tr:even").addClass("li_1");
		$("#rateInfo tr:odd").addClass("li_2");
		$("#fund_projects tr:even").addClass("li_1");
		$("#fund_projects tr:odd").addClass("li_2");
		$("#shareholders tr:even").addClass("li_2");
		$("#shareholders tr:odd").addClass("li_1");
		
		//var value = parseInt($("#master").val()) + parseInt($("#doctor").val())  + parseInt($("#bachelor").val());
		//$("#degree").text(value);
		Percentage();
	});

	function Percentage(){
		var staff = $("#staff").text();
		var research = $("#research").text();
		var degree = $("#degree").text();
		
		var p1 = formatNumber((research/staff).toString(),9,4,4);
		var p2 = formatNumber((degree/staff).toString(),9,4,4);
		$("span[name$=proportion1]").text(((parseFloat(p1)*1000000)/10000).toFixed(2)+"%");
		$("span[name$=proportion2]").text(((parseFloat(p2)*1000000)/10000).toFixed(2)+"%");
	}
	
	
</script>